#include <stdio.h>  
#define N  10
void main()
{  int  i,i2;
   int a[N]={0};
   int  b[11]={0};
  printf("please input the score:\n");
   for(i=0;i<N;i++)
   {
        printf("the score of the %d person is:",i+1);
	   scanf("%d",&a[i]);
	  ++b[a[i]];
   }
   printf("Grade\tCount\tHistogram\t\n");
   for(i=1;i<11;i++)
   { 
	   printf("%-5d\t%-5d\t",i,b[i]);
       for(i2=0;i2<b[i];i2++)
	   {
		   printf("%c",'*');
	   }
       printf("\n");
   }
}
